

class Database:
    data = {}

    def __init__(self, db_file):
        import json
        data = json.load(db_file)
        for key in data.iterkeys():
            self.data[key.encode('utf-8')] = data[key]

    def lookup(self, word):
        return self.data

    def print_all(self):
        print self.data
